﻿using EFModel;
using IServices;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Y2.Filters;

namespace Y2.Controllers
{
    [LoginFilter]
    public class salary_standardThController : Controller
    {
        private readonly Isalary_standard he;

        public salary_standardThController(Isalary_standard he)
        {
            this.he = he;
        }

        public IActionResult salary_standardTh()
        {
            return View();
        }
        public IActionResult salary_standardThUpdate(int? id)
        {
            ViewBag.ssd_id = id;
            return View();
        }
        //薪酬基本修改
        public async Task<int> Upte(salary_standard salary_)
        {
            return await he.Upte(salary_);
        }
        //薪酬详细修改
        public async Task<int> UpteTo(salary_standard_details salary_)
        {
            return await he.UpteTo(salary_);
        }
    }
}
